package fr.inria.phoenix.scenario.bwsnfirefighting.framework.distributed.statusdetection;

import java.util.HashMap;

import java.lang.Boolean;
import fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.DeviceStatus;
import java.lang.Integer;
import fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location;


import fr.inria.diagen.core.service.proxy.Proxy;
import fr.inria.diagen.core.processor.AbstractProcessor;
import fr.inria.diagen.core.network.RemoteServiceInfo;
import fr.inria.diagen.core.exception.InvocationException;

public class EnvironmentSensorDeviceProxy extends Proxy {
  public EnvironmentSensorDeviceProxy(AbstractProcessor processor, RemoteServiceInfo remoteServiceInfo) {
    super(processor, remoteServiceInfo);
  }
  

    public java.lang.Boolean getSmoke() throws InvocationException {
      return (java.lang.Boolean) getProcessor().command(getRemoteServiceInfo(), "getSmoke");
    }
    public java.lang.Integer getTemperature() throws InvocationException {
      return (java.lang.Integer) getProcessor().command(getRemoteServiceInfo(), "getTemperature");
    }
    public fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.DeviceStatus getStatus() throws InvocationException {
      return (fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.DeviceStatus) getProcessor().command(getRemoteServiceInfo(), "getStatus");
    }


    public fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location getLocation() {
      return (fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location) getRemoteServiceInfo().getAttributes().get("location");
    }
    public java.lang.Boolean getDangerousmaterial() {
      return (java.lang.Boolean) getRemoteServiceInfo().getAttributes().get("dangerousmaterial");
    }
    public java.lang.Integer getId() {
      return (java.lang.Integer) getRemoteServiceInfo().getAttributes().get("id");
    }

}
